package com.example.springboot.model;

import jakarta.persistence.*;
import lombok.Data;

import java.time.LocalDate;

/**
 * @author NardinVN
 */
@Data
@Entity
@Table(name = "students")
public class Student {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private Long id;
    @Column
    private String firstName;
    @Column
    private String lastName;
    @Column
    private LocalDate dateBirth;
    @Column(unique = true)
    private String email;
    @Transient
    private int age;

}
